home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 September (Japanese) / CICA Shareware for Windows CD-ROM (Walnut Creek) (September 1995) (Japanese) (Disc 2).iso / disc2 / patches / symantec / pro61.exe / MFCSAM.EXE / CALC / SERVICE.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-22  |  11.0 KB  |  449 lines

  1. // Filename: SERVICE.CPP                                    
  2. // "CALC" Generated by Visual Programmer
  3. // Author:   Blue Sky                                       
  4.  
  5. // 
  6. // ***********************************************************************
  7. // Code in this file is initially generated by the Switch-It Module.
  8. // This file contains functions you can change
  9. // to provide whatever functionality you require.
  10. // 
  11. // All actual processing are done in the .WMC file. To override that
  12. // functionality add your own code in these functions.
  13. // 
  14. // For more information,
  15. // see the section "How code is generated" in the documentation.
  16. // 
  17. // ***********************************************************************
  18. // 
  19.  
  20. #include "AFXWIN.H"
  21. #include "CALC.H"
  22.  
  23. WMPDEBUG
  24.  
  25. #ifdef _DEBUG
  26. #undef THIS_FILE
  27. static char BASED_CODE THIS_FILE[] = __FILE__;
  28. #endif
  29.  
  30.  
  31. #include "SERVICE.WMC"
  32.     
  33.     
  34.     
  35.  
  36.  
  37. // ********************************************************
  38. //  ERROR MESSAGE HANDLING
  39. // ********************************************************
  40.  
  41. int BLDDisplayMessage(HWND hWnd,UINT uMsg,char *pContext,int iType)
  42.     { 
  43.     return BLDDisplayMessageDef(hWnd,uMsg,pContext,iType);
  44.     }
  45.  
  46.  
  47. // *************************************************************
  48. //          FUNCTIONS FOR DRAWING GRAPHIC BUTTONS
  49. // *************************************************************
  50.  
  51. BOOL BLDBitmapToScreen(HDC hDestDC, char *pBitmapName,
  52.                        int X,int Y,int nWidth,int nHeight,
  53.                        DWORD dwRop,BOOL bStretch)
  54.     {
  55.     return BLDBitmapToScreenDef(hDestDC,pBitmapName,X,Y,nWidth,nHeight,
  56.                              dwRop,bStretch);
  57.     }
  58. BOOL BLDDrawIcon(LPDRAWITEMSTRUCT lpDrawItem,char *pIconName)
  59.     {
  60.     return BLDDrawIconDef(lpDrawItem,pIconName);
  61.     }
  62.  
  63.  
  64. BOOL BLDDrawBitmap(LPDRAWITEMSTRUCT lpDrawItem,char *pBitmapName,BOOL bStretch)
  65.     {
  66.     return BLDDrawBitmapDef(lpDrawItem,pBitmapName,bStretch);
  67.     }
  68.  
  69.  
  70. BOOL BLDDrawBkgndIcon(HWND hDlg,LPPAINTSTRUCT pPs,char *pIconName,int iCtrlID)
  71.     {
  72.     return BLDDrawBkgndIconDef(hDlg,pPs,pIconName,iCtrlID);
  73.     }
  74.  
  75.  
  76. BOOL BLDDrawBkgndBitmap(HWND hDlg,LPPAINTSTRUCT pPs,char *pBitmapName,
  77.          int iCtrlID,BOOL bStretch,BOOL bCtrl,int xScrolled,int yScrolled)
  78.     {
  79.     return BLDDrawBkgndBitmapDef(hDlg,pPs,pBitmapName,iCtrlID,bStretch,
  80.          bCtrl,xScrolled,yScrolled);
  81.     }
  82.  
  83.  
  84. BOOL BLDDrawAutoState(LPDRAWITEMSTRUCT lpDrawItem,char *szResource,BOOL bBitmap,BOOL bStretch)
  85.     {
  86.     return BLDDrawAutoStateDef(lpDrawItem, szResource, bBitmap, bStretch);
  87.     }
  88.  
  89.  
  90. BOOL BLDDrawStateBitmap(LPDRAWITEMSTRUCT lpDrawItem,char *szNormal,char *szFocus,
  91.                         char *szSelected,char *szDisabled,BOOL bStretch)
  92.     {
  93.     return BLDDrawStateBitmapDef(lpDrawItem,szNormal,szFocus,
  94.                szSelected,szDisabled,bStretch);
  95.     }
  96.  
  97.  
  98. BOOL BLDDrawStateIcon(LPDRAWITEMSTRUCT lpDrawItem,char *szNormal,char *szFocus,
  99.                       char *szSelected,char *szDisabled)
  100.     {
  101.     return BLDDrawStateIconDef(lpDrawItem,szNormal,szFocus,
  102.                szSelected,szDisabled);
  103.     }
  104.  
  105.  
  106. BOOL BLDDrawItem(HWND hDlg,LPDRAWITEMSTRUCT lpDrawItem)
  107.     {
  108.     return BLDDrawItemDef(hDlg,lpDrawItem);
  109.     }
  110.  
  111.  
  112. // *************************************************************
  113. //          FUNCTION FOR LOADING BITMAP
  114. // *************************************************************
  115.  
  116. HBITMAP BLDLoadBitmap(HINSTANCE hInstance,char *pBitmapName)
  117.     {
  118.     return LoadBitmap(hInstance,(LPSTR)pBitmapName);
  119.     }
  120.  
  121.  
  122. // *************************************************************
  123. //          FUNCTIONS FOR DIALOG BOX SCROLLING                  
  124. // *************************************************************
  125.  
  126. void BLDFindCtrlsRightBottom(CWnd *pWnd,int *xRight,int *yBottom)
  127.     {
  128.     BLDFindCtrlsRightBottomDef(pWnd,xRight,yBottom);
  129.     }
  130.  
  131.  
  132. void BLDCalcScrollRanges(CWnd *pWnd,int *xRange,int *yRange,int xScrolled,
  133.                          int yScrolled,int iRightOf,int iBelow)
  134.     {
  135.     BLDCalcScrollRangesDef(pWnd,xRange,yRange,xScrolled,yScrolled,iRightOf,iBelow);
  136.     }
  137.  
  138.  
  139. BOOL BLDScrollDlg(CWnd *pWnd,UINT message,int nScrlCode,int nPos,int iVertLine,
  140.                   int iHorLine,int iVertPage,int iHorPage,int iRightOf,
  141.                   int iBelow,BOOL bInvalidate,int *pxScrolled,int *pyScrolled)
  142.     {
  143.     return BLDScrollDlgDef(pWnd, message,nScrlCode,nPos,iVertLine,iHorLine,
  144.        iVertPage,iHorPage,iRightOf,iBelow,bInvalidate,pxScrolled,pyScrolled);
  145.     }
  146.  
  147.  
  148. // *************************************************************
  149. //        FUNCTION FOR CREATING CONTROLS IN MAIN WINDOW         
  150. // *************************************************************
  151.  
  152. // Supports Controls in Main window from old versions
  153. BOOL BLDCreateClientControls (char *pTemplateName, CSimClientDlg* pDlg)
  154.     {
  155.     return BLDCreateClientControlsDef(pTemplateName,pDlg);
  156.     }
  157.   
  158.   
  159. // *************************************************************
  160. //          FUNCTION SENDING MDI MESSAGES
  161. // *************************************************************
  162.   
  163. BOOL BLDSendMDIMessage(CWnd *pWnd,UINT message,int nType)
  164.     {
  165.     return BLDSendMDIMessageDef(pWnd,message,nType);
  166.     }
  167.  
  168.  
  169. // *************************************************************
  170. //          FUNCTION EXPANDING DIALOG BOX
  171. // *************************************************************
  172.  
  173. BOOL BLDSizeDlg(CWnd *pWnd,int xRightOf,int yBelow)
  174.     {
  175.     return BLDSizeDlgDef(pWnd,xRightOf,yBelow);
  176.     }
  177.  
  178.  
  179. // *************************************************************
  180. //          FUNCTIONS FOR HELP HANDLING
  181. // *************************************************************
  182.  
  183.  
  184. BOOL BLDCheckF1HelpKey(BOOL bShift)
  185.     {
  186.     return BLDCheckF1HelpKeyDef(bShift);
  187.     }
  188.  
  189.  
  190.  
  191. // *************************************************************
  192. // Member function for Class : CUserScrollBar
  193. // Base Class                : CSimScrollBar
  194. // Derived from MFC Class    : CScrollBar
  195. // *************************************************************
  196.  
  197. CUserScrollBar::CUserScrollBar()
  198.     : CSimScrollBar()
  199. {
  200. }
  201.  
  202.  
  203.  
  204. // *************************************************************
  205. // CUserScrollBar diagnostics
  206.  
  207. #ifdef _DEBUG
  208. void CUserScrollBar::AssertValid() const
  209. {
  210.     CSimScrollBar::AssertValid();
  211. }
  212.  
  213. void CUserScrollBar::Dump(CDumpContext& dc) const
  214. {
  215.     CSimScrollBar::Dump(dc);
  216. }
  217.  
  218. #endif //_DEBUG
  219.  
  220.  
  221.  
  222.  
  223. // *************************************************************
  224. // Member function for Class : CUserStatic
  225. // Base Class                : CSimStatic
  226. // Derived from MFC Class    : CStatic
  227. // *************************************************************
  228.  
  229. CUserStatic::CUserStatic()
  230.     : CSimStatic()
  231. {
  232. }
  233.  
  234.  
  235.  
  236. // *************************************************************
  237. // CUserStatic diagnostics
  238.  
  239. #ifdef _DEBUG
  240. void CUserStatic::AssertValid() const
  241. {
  242.     CSimStatic::AssertValid();
  243. }
  244.  
  245. void CUserStatic::Dump(CDumpContext& dc) const
  246. {
  247.     CSimStatic::Dump(dc);
  248. }
  249.  
  250. #endif //_DEBUG
  251.  
  252.  
  253.  
  254.  
  255. // *************************************************************
  256. // Member function for Class : CUserEdit
  257. // Base Class                : CSimEdit
  258. // Derived from MFC Class    : CEdit
  259. // *************************************************************
  260.  
  261. CUserEdit::CUserEdit()
  262.     : CSimEdit()
  263. {
  264. }
  265.  
  266.  
  267.  
  268. // *************************************************************
  269. // CUserEdit diagnostics
  270.  
  271. #ifdef _DEBUG
  272. void CUserEdit::AssertValid() const
  273. {
  274.     CSimEdit::AssertValid();
  275. }
  276.  
  277. void CUserEdit::Dump(CDumpContext& dc) const
  278. {
  279.     CSimEdit::Dump(dc);
  280. }
  281.  
  282. #endif //_DEBUG
  283.  
  284.  
  285.  
  286.  
  287. // *************************************************************
  288. // Member function for Class : CUserListBox
  289. // Base Class                : CSimListBox
  290. // Derived from MFC Class    : CListBox
  291. // *************************************************************
  292.  
  293. CUserListBox::CUserListBox()
  294.     : CSimListBox()
  295. {
  296. }
  297.  
  298.  
  299.  
  300. // *************************************************************
  301. // CUserListBox diagnostics
  302.  
  303. #ifdef _DEBUG
  304. void CUserListBox::AssertValid() const
  305. {
  306.     CSimListBox::AssertValid();
  307. }
  308.  
  309. void CUserListBox::Dump(CDumpContext& dc) const
  310. {
  311.     CSimListBox::Dump(dc);
  312. }
  313.  
  314. #endif //_DEBUG
  315.  
  316.  
  317.  
  318.  
  319. // *************************************************************
  320. // Member function for Class : CUserComboBox
  321. // Base Class                : CSimComboBox
  322. // Derived from MFC Class    : CComboBox
  323. // *************************************************************
  324.  
  325. CUserComboBox::CUserComboBox()
  326.     : CSimComboBox()
  327. {
  328. }
  329.  
  330.  
  331.  
  332. // *************************************************************
  333. // CUserComboBox diagnostics
  334.  
  335. #ifdef _DEBUG
  336. void CUserComboBox::AssertValid() const
  337. {
  338.     CSimComboBox::AssertValid();
  339. }
  340.  
  341. void CUserComboBox::Dump(CDumpContext& dc) const
  342. {
  343.     CSimComboBox::Dump(dc);
  344. }
  345.  
  346. #endif //_DEBUG
  347.  
  348.  
  349.  
  350.  
  351. // *************************************************************
  352. // Member function for Class : CUserButton
  353. // Base Class                : CSimButton
  354. // Derived from MFC Class    : CButton
  355. // *************************************************************
  356.  
  357. CUserButton::CUserButton()
  358.     : CSimButton()
  359. {
  360. }
  361.  
  362.  
  363.  
  364. // *************************************************************
  365. // CUserButton diagnostics
  366.  
  367. #ifdef _DEBUG
  368. void CUserButton::AssertValid() const
  369. {
  370.     CSimButton::AssertValid();
  371. }
  372.  
  373. void CUserButton::Dump(CDumpContext& dc) const
  374. {
  375.     CSimButton::Dump(dc);
  376. }
  377.  
  378. #endif //_DEBUG
  379.  
  380.  
  381.  
  382.  
  383. // *************************************************************
  384. // Member function for Class : CUserCustom
  385. // Base Class                : CSimCustom
  386. // Derived from MFC Class    : CWnd
  387. // *************************************************************
  388.  
  389. CUserCustom::CUserCustom()
  390.     : CSimCustom()
  391. {
  392. }
  393.  
  394.  
  395.  
  396. // *************************************************************
  397. // CUserCustom diagnostics
  398.  
  399. #ifdef _DEBUG
  400. void CUserCustom::AssertValid() const
  401. {
  402.     CSimCustom::AssertValid();
  403. }
  404.  
  405. void CUserCustom::Dump(CDumpContext& dc) const
  406. {
  407.     CSimCustom::Dump(dc);
  408. }
  409.  
  410. #endif //_DEBUG
  411.  
  412.  
  413.  
  414.  
  415. // *************************************************************
  416. // Member function for Class : CUserGraphicButton
  417. // Base Class                : CSimGraphicButton
  418. // Derived from MFC Class    : CButton
  419. // *************************************************************
  420.  
  421. CUserGraphicButton::CUserGraphicButton()
  422.   : CSimGraphicButton()
  423. {
  424.  
  425. };
  426.  
  427.  
  428.  
  429. void CUserGraphicButton::SimSetGraphicData(char * szInBitmap,BOOL bInBitmap,BOOL bInStretch)
  430. {
  431.     CSimGraphicButton::SimSetGraphicData(szInBitmap,bInBitmap,bInStretch);
  432. }
  433.  
  434.  
  435.  
  436. void CUserGraphicButton::SimSetGraphicData3D(char *szInNormal,char *szInFocus, char *szInSelected,
  437.          char *szInDisabled,BOOL bInBitmap,BOOL bInStretch)
  438. {
  439.     CSimGraphicButton::SimSetGraphicData3D(szInNormal,szInFocus,
  440.          szInSelected,szInDisabled,bInBitmap,bInStretch);
  441. }
  442.  
  443.  
  444.  
  445. void CUserGraphicButton::SimSetGraphicDataBkGrnd(char * szInBitmap,BOOL bInBitmap,BOOL bInStretch)
  446. {
  447.     CSimGraphicButton::SimSetGraphicDataBkGrnd(szInBitmap,bInBitmap,bInStretch);
  448. }
  449.